package com.example.shoppingmall.dao;

import com.example.shoppingmall.pojo.Parameter;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ParameterMapper {

    public List<Parameter>parameterList();

    public List<Parameter>parameterListForNo(@Param("no") int no);

    public int count();

    public Parameter xiangQing(@Param("id") int id);

    public int add(@Param("name") String name);

    public int delete(@Param("id") int id);

    public int update(Parameter parameter);

    public int chackName(@Param("name") String name);
}
